package com.example.chat.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "VDOA051_EQUIP_MENT_TYPE")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@DynamicInsert
@DynamicUpdate
@NoArgsConstructor
public class EquipMentType extends BaseEntity implements Serializable {

    /**
     * 设备类型编号
     */
    @Id
    @GenericGenerator(name = "uuidG", strategy = "org.hibernate.id.UUIDGenerator")
    @GeneratedValue(generator = "uuidG")
    @Column(name = "DOA051_ID", length = 50)
    private String id;

    /**
     * 设备类型
     */
    @Column(name = "DOA051_NAME")
    private String name;

    @Column(name = "DOA051_DELETED")
    private boolean deleted;
}